package com.mezz.bones.framework.web.handler.log;

import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author mezz
 * @date 2023-01-18 15:57
 * @description:
 */
@Configuration
public class RequestLogStoreHandlerConfig {

  @Bean
  @ConditionalOnMissingBean
  public RequestLogStoreHandler requestLogStoreHandler(){
    //如果没有自定义日志存储逻辑就使用默认的 API日志存储处理器
    return new DefaultRequestLogStoreHandler();
  }
}
